package com.simen.spring.boot.example.dao;

import com.simen.spring.boot.example.model.User;
import org.apache.ibatis.annotations.*;

/**
 * Created by Administrator on 2017/7/16 0016.
 */
@Mapper
public interface UserDao {
    @Select("SELECT * FROM users where id = #{id}")
    @Results({@Result(property = "id", column = "id"), @Result(property = "name", column = "name"), @Result(property = "password", column = "password")})
    User findById(@Param("id") int id);
}